package cn.hengzhu.main_manager.utils;

import java.util.ArrayList;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;

public class LayUiResultJson<T> {
	@ApiModelProperty("错误时返回的信息")
	private String msg = "";
	@ApiModelProperty("返回值:成功---0 ，失败---400")
	private int code=0;
	@ApiModelProperty("总条数")
	private long count;
	@ApiModelProperty("数据的list集合")
	private List<T> data = new ArrayList<>();

	public LayUiResultJson() {
		super();
	}

	public LayUiResultJson(long count, List<T> data) {
		super();
		this.count = count;
		this.data = data;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

}
